<?php
	session_start();
	if ( ( isset( $_SESSION['auth'] ) ) && ( isset($_POST['msg']) ) )
	{
		$fp = @fsockopen( $_SESSION['ip'], $_SESSION['rport'], $errno, $errstr, 5);
		if ( !$fp ) exit( "OFF" );
		fwrite( $fp, $_SESSION['auth']." SAY ".$_POST['msg'] );
		fclose( $fp );
	}
?>